package org.zhxy.core.system.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.zhxy.common.response.PageResult;
import org.zhxy.common.response.Result;
import org.zhxy.common.response.ResultCode;
import org.zhxy.core.system.service.LogService;

import java.util.Map;

@RestController
@RequestMapping("/log")
public class LogController {


    @Autowired
    private LogService logService;

    @RequestMapping(value = "/getErrorLogList",method = RequestMethod.POST)
    public Result getErrorLogList(@RequestBody Map<String,Object> map){
        return new Result(ResultCode.SUCCESS,logService.getErrorLogList(map));
    }

    @RequestMapping(value = "/getOptionalLogList",method = RequestMethod.POST)
    public Result getOptionalLogList(@RequestBody Map<String,Object> map){
        return new Result(ResultCode.SUCCESS,logService.getOptionalLogList(map));
    }

}
